/*
  Morse.h - Library for flashing Morse code.
  Created by David A. Mellis, November 2, 2007.
  Released into the public domain.
*/
#ifndef Step_h
#define Step_h

#include "Arduino.h"

class Step {
public:
	//Constructors
	Step(boolean trig);
	Step(int value);

	//Accessors
	int getValue();
	boolean getTrig();
	boolean getGate();

	//Modifiers
	void setValue(int value);
	void setTrig(boolean trig);
	void setGate(boolean);

	void toggleTrig();
	void toggleGate();

private:
	int _value;
	boolean _trig;
	boolean _gate;

	int _prevValue;
	boolean _trigOn;
	boolean _gateOn;
};

#endif